<?php
/* Template Name: Faculty Page */
?>

<?php
/**
 * Layout giảng viên
 */

get_header(); get_template_part('block', 'header-faculty');
$list_faculty = is_array(get_field('faculty')) ? get_field('faculty') : array();
?>
    <section class="fix">
        <div class="box-list-faculty">
            <?php foreach($list_faculty as $faculty):?>
            <article class="item">
                <div class="thumb">
                    <img src="<?php echo $faculty['image']['url'];?>" width="220" height="220" alt="<?php echo $faculty['fullname'];?>" title="<?php echo $faculty['fullname'];?>"/>
                </div>
                <h3><?php echo $faculty['fullname'];?></h3>
                <p><?php echo $faculty['detail'];?></p>
            </article>
            <?php endforeach;?>
        </div>
    </section>
<?php get_footer(); ?>